.class public Lcom/xingbook/ui/XbShareView;
.super Landroid/widget/RelativeLayout;


# instance fields
.field private a:Lcom/xingbook/ui/XbLayout;


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 1

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {p0, p1}, Lcom/xingbook/ui/XbShareView;->a(Landroid/app/Activity;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    instance-of v0, p1, Landroid/app/Activity;

    if-eqz v0, :cond_0

    check-cast p1, Landroid/app/Activity;

    invoke-virtual {p0, p1}, Lcom/xingbook/ui/XbShareView;->a(Landroid/app/Activity;)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/XbShareView;->a(Landroid/app/Activity;)V

    goto :goto_0
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    instance-of v0, p1, Landroid/app/Activity;

    if-eqz v0, :cond_0

    check-cast p1, Landroid/app/Activity;

    invoke-virtual {p0, p1}, Lcom/xingbook/ui/XbShareView;->a(Landroid/app/Activity;)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/XbShareView;->a(Landroid/app/Activity;)V

    goto :goto_0
.end method


# virtual methods
.method public a(Landroid/app/Activity;)V
    .locals 16

    const/4 v1, 0x0

    move-object/from16 v0, p1

    instance-of v2, v0, Landroid/view/View$OnClickListener;

    if-eqz v2, :cond_0

    move-object/from16 v1, p1

    check-cast v1, Landroid/view/View$OnClickListener;

    move-object v2, v1

    :goto_0
    move-object/from16 v0, p0

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/XbShareView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/4 v1, 0x1

    move-object/from16 v0, p0

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/XbShareView;->setId(I)V

    const/high16 v1, 0x7f00

    move-object/from16 v0, p0

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/XbShareView;->setBackgroundColor(I)V

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/ui/XbShareView;->getContext()Landroid/content/Context;

    move-result-object v7

    invoke-static/range {p1 .. p1}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v3

    const/high16 v1, 0x42c8

    mul-float/2addr v1, v3

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v8

    const/high16 v1, 0x4325

    mul-float/2addr v1, v3

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v9

    const/high16 v1, 0x4357

    mul-float/2addr v1, v3

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    const/high16 v4, 0x41a0

    mul-float/2addr v4, v3

    invoke-static {v4}, Ljava/lang/Math;->round(F)I

    move-result v10

    const/high16 v4, 0x41a0

    mul-float/2addr v4, v3

    invoke-static {v4}, Ljava/lang/Math;->round(F)I

    move-result v11

    const/high16 v4, 0x41f0

    mul-float/2addr v4, v3

    invoke-static {v4}, Ljava/lang/Math;->round(F)I

    move-result v4

    const/high16 v5, 0x40c0

    mul-float/2addr v5, v3

    invoke-static {v5}, Ljava/lang/Math;->round(F)I

    move-result v5

    const/4 v6, 0x0

    const/4 v12, 0x0

    new-instance v13, Lcom/xingbook/ui/XbLayout;

    invoke-direct {v13, v7}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    new-instance v13, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v14, -0x1

    const/high16 v15, 0x43ff

    mul-float/2addr v15, v3

    float-to-int v15, v15

    invoke-direct {v13, v14, v15}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v14, 0xc

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    const/4 v15, -0x1

    invoke-virtual {v14, v15}, Lcom/xingbook/ui/XbLayout;->setBackgroundColor(I)V

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    const/4 v15, 0x7

    invoke-virtual {v14, v15}, Lcom/xingbook/ui/XbLayout;->setId(I)V

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    new-instance v15, Lcom/xingbook/ui/aj;

    invoke-direct/range {v15 .. v16}, Lcom/xingbook/ui/aj;-><init>(Lcom/xingbook/ui/XbShareView;)V

    invoke-virtual {v14, v15}, Lcom/xingbook/ui/XbLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v14, v13}, Lcom/xingbook/ui/XbLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    move-object/from16 v0, p0

    invoke-virtual {v0, v13}, Lcom/xingbook/ui/XbShareView;->addView(Landroid/view/View;)V

    add-int/2addr v12, v11

    add-int/2addr v6, v10

    new-instance v13, Lcom/xingbook/ui/ad;

    invoke-direct {v13, v7}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    const/4 v14, 0x1

    iput-boolean v14, v13, Lcom/xingbook/ui/ad;->w:Z

    const/high16 v14, 0x4120

    iput v14, v13, Lcom/xingbook/ui/ad;->j:F

    int-to-float v4, v4

    iput v4, v13, Lcom/xingbook/ui/ad;->c:F

    const v4, -0x555556

    iput v4, v13, Lcom/xingbook/ui/ad;->b:I

    const/4 v4, 0x1

    iput v4, v13, Lcom/xingbook/ui/ad;->d:I

    iput v5, v13, Lcom/xingbook/ui/ad;->l:I

    const v4, -0x9a00

    invoke-virtual {v13, v4}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    const/4 v4, 0x1

    iput-boolean v4, v13, Lcom/xingbook/ui/ad;->p:Z

    const/4 v4, 0x2

    invoke-virtual {v13, v4}, Lcom/xingbook/ui/ad;->setId(I)V

    invoke-virtual {v13, v2}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f0202e4

    invoke-static {v4, v5}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v4

    iput-object v4, v13, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    add-int v4, v6, v1

    add-int v5, v12, v9

    invoke-virtual {v13, v6, v12, v4, v5}, Lcom/xingbook/ui/ad;->layout(IIII)V

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v4, v13}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    add-int v4, v10, v1

    add-int/2addr v4, v6

    invoke-virtual {v13}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v5

    const/4 v6, 0x3

    invoke-virtual {v5, v6}, Lcom/xingbook/ui/ad;->setId(I)V

    invoke-virtual {v5, v2}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v14, 0x7f0202e5

    invoke-static {v6, v14}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v6

    iput-object v6, v5, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    add-int v6, v4, v1

    add-int v14, v12, v9

    invoke-virtual {v5, v4, v12, v6, v14}, Lcom/xingbook/ui/ad;->layout(IIII)V

    move-object/from16 v0, p0

    iget-object v6, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v6, v5}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    add-int v5, v10, v1

    add-int/2addr v4, v5

    invoke-virtual {v13}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v5

    const/4 v6, 0x5

    invoke-virtual {v5, v6}, Lcom/xingbook/ui/ad;->setId(I)V

    invoke-virtual {v5, v2}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v14, 0x7f0202e2

    invoke-static {v6, v14}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v6

    iput-object v6, v5, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    add-int v6, v4, v1

    add-int v14, v12, v9

    invoke-virtual {v5, v4, v12, v6, v14}, Lcom/xingbook/ui/ad;->layout(IIII)V

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v4, v5}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    add-int v4, v11, v9

    add-int/2addr v4, v12

    invoke-virtual {v13}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v5

    const/4 v6, 0x6

    invoke-virtual {v5, v6}, Lcom/xingbook/ui/ad;->setId(I)V

    invoke-virtual {v5, v2}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v12, 0x7f0202e0

    invoke-static {v6, v12}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v6

    iput-object v6, v5, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    add-int v6, v10, v1

    add-int v12, v4, v9

    invoke-virtual {v5, v10, v4, v6, v12}, Lcom/xingbook/ui/ad;->layout(IIII)V

    move-object/from16 v0, p0

    iget-object v6, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v6, v5}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    add-int v5, v10, v1

    add-int/2addr v5, v10

    invoke-virtual {v13}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v6

    const/4 v12, 0x4

    invoke-virtual {v6, v12}, Lcom/xingbook/ui/ad;->setId(I)V

    invoke-virtual {v6, v2}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v12

    const v13, 0x7f0202e1

    invoke-static {v12, v13}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v12

    iput-object v12, v6, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    add-int/2addr v1, v5

    add-int v12, v4, v9

    invoke-virtual {v6, v5, v4, v1, v12}, Lcom/xingbook/ui/ad;->layout(IIII)V

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v1, v6}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    add-int v1, v11, v9

    add-int v12, v4, v1

    const/high16 v1, 0x4120

    invoke-static/range {p1 .. p1}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v4

    mul-float/2addr v4, v1

    new-instance v1, Lcom/xingbook/ui/ad;

    invoke-direct {v1, v7}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const-string v2, "\u53d6\u6d88"

    iput-object v2, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iput v4, v1, Lcom/xingbook/ui/ad;->j:F

    const/high16 v2, 0x4238

    mul-float/2addr v2, v3

    iput v2, v1, Lcom/xingbook/ui/ad;->c:F

    const/4 v2, -0x1

    iput v2, v1, Lcom/xingbook/ui/ad;->b:I

    const/4 v2, 0x0

    iput-object v2, v1, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    const v2, -0x39393a

    iput v2, v1, Lcom/xingbook/ui/ad;->i:I

    const v2, -0x656566

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    const/16 v2, 0x11

    iput v2, v1, Lcom/xingbook/ui/ad;->d:I

    const v2, -0x4a4a4b

    const/4 v3, 0x1

    const/4 v4, 0x1

    const/4 v5, 0x1

    const/4 v6, 0x1

    invoke-virtual/range {v1 .. v6}, Lcom/xingbook/ui/ad;->a(IIIII)V

    const/4 v2, 0x0

    iput v2, v1, Lcom/xingbook/ui/ad;->l:I

    invoke-static/range {p1 .. p1}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    sub-int/2addr v2, v10

    add-int v3, v12, v8

    invoke-virtual {v1, v10, v12, v2, v3}, Lcom/xingbook/ui/ad;->layout(IIII)V

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setId(I)V

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/xingbook/ui/XbShareView;->a:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v2, v1}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/view/View;

    invoke-direct {v1, v7}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    add-int v2, v12, v11

    add-int/2addr v2, v9

    add-int/lit8 v3, v10, 0x1

    invoke-virtual {v1, v10, v2, v3, v2}, Landroid/view/View;->layout(IIII)V

    return-void

    :cond_0
    move-object v2, v1

    goto/16 :goto_0
.end method
